<?php $this->load->view("general/header");?>
<div id="forgot_password" class="page_">
    <div class="form">              
        <div class="form_header">Testimonial</div>
        <?php if(count($testimonial_list) == 0){ ?>
        	<div class="header_data sub">No testimonial</div>
		<?php }else{ ?>
        <!-- perulangan-->
        	<?php foreach($testimonial_list as $testi){ ?>
        <div class="header_data sub"><?php echo $testi['name'];?>        
            <form action="<?php echo current_url();?>" method="post">
                <input type="hidden" name="testimonial_id" value="<?php echo $testi['testimonial_id'];?>" />
                <input type="hidden" name="status" value="<?php echo $testi['is_shown'];?>" />
                (Currently: <?php echo ($testi['is_shown']=='Y')?"Show on Public":"Hide from Public";?>) <input type="submit" name="btnChangeStatus" value="Change" class="button_red" />
            </form>
		</div>
        <div class="content_data"><?php echo $testi['desc'];?><br /><i><?php echo $testi['entry_date'];?></i></div>
        	<?php } ?>
        <!-- perulangan-->
        <?php } ?>
        
        <div class="clear"></div>
    	<div class="paging"><?php echo $pagination;?></div>
	    <div class="clear"></div>
        
	</div>
</div>
<?php $this->load->view("general/footer");?>